//
//  BSCollectionViewLayout.h
//  PhotographyStudi
//
//  Created by 叶一枫 on 2017/5/23.
//  Copyright © 2017年 叶一枫. All rights reserved.
//

#import <UIKit/UIKit.h>

//indexPath  代表哪一行，marginX代表 x轴间距 colCout代表有几列 返回indexPath
typedef CGFloat (^HeightBlock)(NSIndexPath *indexPath);

@interface BSCollectionViewLayout : UICollectionViewLayout

@property (nonatomic,assign)CGFloat colMargin;

@property (nonatomic,assign)CGFloat colCount;

@property (nonatomic,assign)CGFloat rolMargin;

//数组存放每列的总高度
@property (nonatomic,strong) NSMutableArray *colsHeight;

//单元格的宽度
@property (nonatomic,assign)CGFloat colWidth;

@property (nonatomic,strong)HeightBlock heightBlock;

//新增 头部视图+尾部视图
@property (nonatomic,strong)NSMutableArray* mutAttribute;


-(instancetype)initWithItemsHeightBlock:(HeightBlock)block marginX:(CGFloat)marginX colCount:(CGFloat)count;



@end
